package com.eastfair.venuebooking.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * The type Sale clue dto.
 *
 * @author dqq
 * @date 2022 /6/24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
public class SaleClueDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    public interface Save {
    }

    public interface Update {
    }

    public interface Public {
    }

    public interface Assign {
    }

    public interface UpdateSaleClueStatus {
    }

    @NotNull(message = "线索id不可为空", groups = {UpdateSaleClueStatus.class})
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 归属人员
     */
    @ApiModelProperty(value = "归属人员")
    private Long belongTo;
    /**
     * 归属人姓名
     */
    @ApiModelProperty(value = "归属人姓名")
    @Size(max = 255, message = "归属人姓名长度不能超过255")
    private String belongToName;
    /**
     * 归属人员部门id
     */
    @ApiModelProperty(value = "归属人员部门id")
    private Long orgCode;
    /**
     * 归属人员部门名称
     */
    @ApiModelProperty(value = "归属人员部门名称")
    private String orgName;

    /**
     * 前归属部门
     */
    @ApiModelProperty(value = "前归属部门")
    private Long lastOrgCode;

    /**
     * 前归属部门名称
     */
    @ApiModelProperty(value = "前归属部门名称")
    private String lastOrgName;
    /**
     * 线索标题
     */
    @ApiModelProperty(value = "线索标题")
    @Size(max = 75, message = "线索标题长度不能超过75")
    private String clueTitle;
    /**
     * 线索来源，同名数据字典
     */
    @ApiModelProperty(value = "线索来源，同名数据字典")
    @Size(max = 64, message = "线索来源，同名数据字典长度不能超过64")
    private String clueSource;
    /**
     * 线索状态(同名数据字典)
     */
    @ApiModelProperty(value = "线索状态(同名数据字典)")
    @Size(max = 64, message = "线索状态(同名数据字典)长度不能超过64", groups = {UpdateSaleClueStatus.class})
    @NotBlank(message = "线索状态不可为空", groups = {UpdateSaleClueStatus.class})
    private String clueStatus;
    /**
     * 前归属人
     */
    @ApiModelProperty(value = "前归属人")
    private Long lastBelongTo;
    /**
     * 前归属人姓名
     */
    @ApiModelProperty(value = "前归属人姓名")
    @Size(max = 255, message = "前归属人姓名长度不能超过255")
    private String lastBelongToName;
    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Long deptId;
    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    private Long customerId;
    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    @Size(max = 64, message = "客户名称长度不能超过64")
    private String customerName;
    /**
     * 联系人id
     */
    @ApiModelProperty(value = "联系人id")
    private Long contactId;
    /**
     * 联系人姓名
     */
    @ApiModelProperty(value = "联系人姓名")
    @Size(max = 20, message = "联系人姓名长度不能超过20")
    private String contactName;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 1000, message = "备注长度不能超过1000")
    private String remark;
    /**
     * 最后跟进时间
     */
    @ApiModelProperty(value = "最后跟进时间")
    private LocalDateTime lastFollowDate;
    /**
     * 下次跟进时间
     */
    @ApiModelProperty(value = "下次跟进时间")
    private LocalDateTime nextFollowDate;
    /**
     * 数据状态(0正常 1公共)
     */
    @ApiModelProperty(value = "数据状态(0正常 1公共)")
    private Integer state;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibition;
    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @Size(max = 255, message = "展会名称长度不能超过255")
    private String exhibitionName;
    /**
     * 客户举办类型 (SPONSOR:主办;UNDERTAKE:承办)
     */
    @ApiModelProperty(value = "客户举办类型 (SPONSOR:主办;UNDERTAKE:承办)")
    @Size(max = 64, message = "客户举办类型 (SPONSOR:主办;UNDERTAKE:承办)长度不能超过64")
    private String customerIdentity;
}
